<?php
define('AK','百度云AccessKey');
define('SK','百度云SecretKey');
define('DM','服务域名');
function Hpost($u,$d){
	$ch = curl_init();
	curl_setopt($ch, CURLOPT_URL, $u);
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
	curl_setopt($ch, CURLOPT_POST, 1);
	curl_setopt($ch, CURLOPT_POSTFIELDS, $d);
	curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
	$output = curl_exec($ch);
	if($output==false){
		$ret = curl_error($ch); 
		curl_close($ch);
		return $ret;
	}
	curl_close($ch);
	return $output;
}